package valeria;

public class J15Cal {
 private int a;
 private int b;
 
 public void setValue(int a,int b){
	 this.a=a;
	 this.b=b;
 }
 
public int getA() {return a;}
public int getB() {return b;}

public int calculate(){return 0;}

}

class J15Add extends J15Cal{
	public int calculate(){return getA()+getB();}
}

class J15Sub extends J15Cal{
	public int calculate(){return getA()-getB();}
}

class J15Mul extends J15Cal{
	public int calculate(){return getA()*getB();}
}

class J15Div extends J15Cal{
	public int calculate(){return getA()/getB();}
}